/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: lcardButtonView
 * Author: Gxjkz
 * Date: 2021/7/27 10:09
 * Description: 半圆按钮
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
package com.niuxiaofa.newlaw.View;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.niuxiaofa.newlaw.R;

/**
 * @ClassName: lcardButtonView
 * @Description: 半圆按钮
 * @Author: Gxjkz
 * @Date: 2021/7/27 10:09
 */
public class LcardButtonView extends RelativeLayout {
    private TextView textView;


    public LcardButtonView(Context context) {
        super(context);
    }

    public LcardButtonView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.view_lcard_botton, this, true);
        textView=(TextView)findViewById(R.id.textvalue);


        TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.LcardButtonView);

        String leftButtonText = attributes.getString(R.styleable.LcardButtonView_lcrd_text);
        textView.setText(leftButtonText);

    }





}